package com.icesoft.xsnow.common.core.utils;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.reflect.MethodSignature;
import java.lang.reflect.Method;
/**
 * @program: xsnow
 * @description: 切面工具
 * @author: xuefeng.gao
 * @create: 2019-06-06 14:19
 **/
public class AspectUtil {
    /**
    * 获取方法
    **/
    public static Method getMethod(JoinPoint point){
        Signature signature = point.getSignature();
        MethodSignature methodSignature = (MethodSignature) signature;
        return methodSignature.getMethod();
    }
}
